package org.goldenmock.web.matchers;


import org.goldenmock.web.server.EasyHttpRequest;

/**
 * @author Robin Wagenaar
 * @author Arjen van Staalduinen
 */
public class RequestUriMatcher extends EasyRequestMatcher {
    private String pattern;

    public RequestUriMatcher(String pattern) {
        this.pattern = pattern;
    }

    @Override
    public boolean matchesEasyRequest(EasyHttpRequest easyHttpRequest) {
        return easyHttpRequest.getRequestURI().matches(pattern);
    }
}
